<?php 
use yii\helpers\Html;
 ?>
<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body >
   <!-- Page Layout here -->
   <div class="container_l" style="padding:3%;padding-top: 20px;background: #eeeeee;" >
    <!-- 第一层卡片 -->
        <div class="valign-wrapper" style="font-size: 24px;">用户 </div>  
      <table>
        <thead>
          <tr>
              <th>用户名</th>
              <th >角色</th>
              <th>电子邮件</th>
              <th>文章数</th>
          </tr>
        </thead>
        <tbody>
          <?php                
           foreach($user as $key=>$val)
          {   
          echo  "<tr>";         
          echo "<td>";     
           echo Html::tag('a', $val->username);
          echo "</td>";
             echo Html::tag('td', $val->role);
             echo Html::tag('td', $val->email);
             echo  Html::tag('td', '0');      
             echo  "</tr>";
          }
          ?>        
        </tbody>
      </table>
       </div>
     </div>
</body>
</html>
